package edu.zut.cs.javaee.manager.checkwork.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

 
import edu.zut.cs.javaee.manager.base.web.spring.controller.GenericController;
import edu.zut.cs.javaee.manager.checkwork.domain.StudentOne;
import edu.zut.cs.javaee.manager.checkwork.service.StudentOneManager;

@Controller
@RequestMapping({"/studentone","/"})
public class StudentOnecontroller extends GenericController<StudentOne, Long, StudentOneManager> {
	StudentOneManager studentManager;

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/index";
		return result;
	}

	@Autowired
	public void setStudentManager(StudentOneManager studentOneManager) {
		this.studentManager = studentOneManager;
		this.manager = this.studentManager;
	}
}//http://localhost:8080/manager-web/checkwork/studentone/.jsonp?page=1&limit=100
